﻿using System.Collections.Generic;

namespace Chevron.OrderDetails.Models
{
    public class LabOrdersList : List<OrderDto>
    {
        private static int SortDate(OrderDto x, OrderDto y)
        {
            return x.OrderDateTime.CompareTo(y.OrderDateTime);
        }

        public void SortByDate()
        {
            Sort(SortDate);
        }
    }
}